package cn.mickey.cloud.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

//评论
@TableName("t_comment")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain=true)
public class Comment {
    @TableId(type = IdType.ASSIGN_ID)
    private Long cid;       //主键
    private Long uid;       //用户外键
    private Long hid;       //房屋外键
    private String content;  //内容

    //添加字段填充内容
    //@TableField(fill = FieldFill.INSERT)
    private String createTime;  //创建时间
    //是否删除 默认为0,表示没有删除
    private int isDel = 0;

}
